/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ditt.swing;

import javax.swing.*;
import java.awt.*;

/**
 *
 * @author attobra
 */
public class Authentification {
    
    public static void main(String[] args){
        
        JFrame fenetre = new JFrame("Authentification");
        fenetre.setLayout(new FlowLayout(FlowLayout.LEFT,5,5));
        
        JLabel lblLogin = new JLabel("Login :");
        JLabel lblMotDePasse = new JLabel("Mot de passe :");
        
        JTextField txtLogin = new javax.swing.JTextField(10);
        JTextField txtMotDePasse = new javax.swing.JPasswordField(10);
        
        java.awt.Container panneau  = fenetre.getContentPane();
        
        panneau.add(lblLogin);
        
        panneau.add(txtLogin);
        
        panneau.add(lblMotDePasse);
        
        panneau.add(txtMotDePasse);
        
        fenetre.pack();
        fenetre.setSize(300,200);
        
        fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        fenetre.setVisible(true);
        
        
        
    }
    
    
    
}
